﻿#region Using namespaces

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows.Input;

using AvalonDock;

#endregion

namespace BOL.Apps.GeneNetworkBrowser.ViewModels
{
    public sealed class ProjectPaneViewModel : PaneViewModel
    {
        #region Private variables

        private NetworkDocumentViewModel _vmNetworkDocument;

        #endregion

        #region Public properties

        public Network Network
        { 
            get 
            {
                if (_vmNetworkDocument.Network != null)
                    return _vmNetworkDocument.Network;

                return null;
            }
        }

        #endregion

        #region Constructor

        public ProjectPaneViewModel(MainWindowViewModel vmMainWindow)
            : base(vmMainWindow)
        {
            if (_vmMainWindow != null || _vmMainWindow.ActiveDocument != null)
                _vmNetworkDocument = _vmMainWindow.ActiveDocument as NetworkDocumentViewModel;
        }

        #endregion
    }
}
